#pragma once
#include <QDialog>

#include "ui_Goto.h"

class Goto : public QDialog {
    Q_OBJECT
public:
    Goto(QWidget* parent = nullptr);
    ~Goto();

private:
    Ui_Goto* ui;

private slots:
    // 转到界面中按钮的槽函数——转到和取消
    void on_GotoPushButton_clicked();
    void on_CancelPushButton_clicked();

signals:
    void gotoLine(int line);

protected:
    /********************************************************************************
     * @brief 检测到转到显示的时候，初始化相关参数
     * @param  event
     ********************************************************************************/
    void showEvent(QShowEvent* event);
};
